Ext.define('carManage.view.insuranceInfo.SearchForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.searchForm',
    frame: false,
    bodyStyle: 'padding: 6px',
    fieldDefaults: {
        labelWidth: 60
    },
    items: [{
            xtype: 'container',
            anchor: '100%',
            layout: 'hbox',
            items: [{
                    xtype: 'container',
                    flex: 3,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: 'combo',
                            fieldLabel: '车牌号码',
                            name: 'car_form',
                            id: 'car_form',
                            displayField: 'name',
                            valueField: 'name',
                            emptyText: '车牌号码',
                            anchor: '98%',
                            multiSelect:true,
                            queryParam: 'name',
                            autoSelect: false,
                            triggerAction: 'all',
                            store: 'CarList_store'
                        }, {
                            xtype: 'combo',
                            multiSelect:true,
                            fieldLabel: '承保公司',
                            id: 'cbCompany',
                            name: 'cbCompany',
                            displayField: 'name',
                            valueField: 'name',
                            emptyText: '承保公司',
                            anchor: '98%',
                            queryParam: 'name',
                            autoSelect: false,
                            triggerAction: 'all',
                            store: 'InsurerListStore'
                        }
                    ]
                },
                {
                    xtype: 'container',
                    flex: 4,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: 'datefield',
                            fieldLabel: '交强险从',
                            name: 'jq_stime',
                            id: 'jq_stime',
                            altFormats: 'Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            emptyText: '开始时间',
                            anchor: "98%"
                        },{
                            xtype: 'datefield',
                            fieldLabel: '商业险从',
                            name: 'sy_stime',
                            id: 'sy_stime',
                            altFormats: 'Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            emptyText: '开始时间',
                            anchor: "98%"
                        }
                    ]},
                {
                    xtype: 'container',
                    flex: 2,
                    layout: 'anchor',
                    items: [
                         {
                            xtype: 'datefield',
                            fieldLabel: '到',
                            labelWidth:30,
                            name: 'jq_etime',
                            id: 'jq_etime',
                            altFormats: 'Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            emptyText: '结束时间',
                            anchor: "98%"
                        },
                         {
                            xtype: 'datefield',
                            fieldLabel: '到',
                            labelWidth:30,
                            name: 'sy_etime',
                            id: 'sy_etime',
                            altFormats: 'Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            emptyText: '结束时间',
                            anchor: "98%"
                        }
                    ]},
                {
                    xtype: 'container',
                    flex: 1,
                    layout: 'anchor',
                    items: [{
                            xtype: "button",
                            id: 'query_tbar',
                            text: "查  询",
                            width: 60
                        }]
                }]

        }
    ],
    initComponent: function() {
        this.callParent(arguments);
    }
});